home *** CD-ROM | disk | FTP | other *** search
- Path: nntphost.st-and.ac.uk!bd
- From: bd@davaar.st-and.ac.uk (Brian Duff)
- Newsgroups: comp.lang.c
- Subject: Re: HELP! Please! Why doesn't this work
- Date: 29 Feb 1996 14:53:45 GMT
- Organization: University of St. Andrews
- Message-ID: <BD.96Feb29145345@davaar.st-and.ac.uk>
- References: <Pine.ULT.3.91a.960215131933.614A-100000@red5.cac.washington.edu>
- <GEORG.96Feb23192440@acds14.physik.rwth-aachen.de>
- Reply-To: bd@st-and.ac.uk
- NNTP-Posting-Host: davaar.dcs.st-and.ac.uk
- In-reply-to: georg@acds14.physik.rwth-aachen.de's message of 23 Feb 1996 18:24:40 GMT
-
-
- In article <Pine.ULT.3.91a.960215131933.614A-100000@red5.cac.washington.edu> "Aaron T. Baldie" <atb@cac.washington.edu> writes:
-
- >...
- > solution_array = (char **) malloc(size);
-
- This should read
-
- solution_array = (char**)malloc(size * sizof(char*));
- >...
-
-
- if (pedantic_mode)
- {
- solution_array = (char**)malloc(size * sizeof(char*));
- ^^^
- }
- else
- {
- ;
- }
-
-
-
- ;)
-
- Brian
-
- http://www-2nd-cs.dcs.st-and.ac.uk/~bd/
-
-
- --
- --
- I am Pentium of Borg. You will be approximated, accuracy is futile!
-
- |> Brian Duff - University Of St. Andrews |\
- |> http://www-2nd-cs.dcs.st-and.ac.uk/~bd |/
-